package cn.stylefeng.guns.modular.recy.utils;

import java.util.*;
import com.alibaba.fastjson.*;
import cn.hutool.http.*;

public class RealNameUtils
{
    public static JSONObject check(final Map<String, String> queryParams) {
        final String url = "https://eid.shumaidata.com/eid/check";
        final String appSecret = "rokghvsksfanmywp5vvcaz7ifrp01vws";
        final String appKey = "203731667";
        final String appCode = "c18df853a11f496ba07c1d09d7977880";
        final HttpRequest post = HttpUtil.createPost(url);
        post.form("idcard", queryParams.get("cardNo"));
        post.form("name", queryParams.get("realName"));
        post.header("Authorization", "APPCODE " + appCode);
        final HttpResponse execute = post.execute();
        final String body = execute.body();
        System.out.println("\u5b9e\u540d\u8ba4\u8bc1\u7ed3\u679c\uff1a" + body);
        final JSONObject checkResult = JSON.parseObject(body);
        return checkResult;
    }
    
    public static void main(final String[] args) {
    }
}
